package com.junlong0716.enjoylearning.entity

import com.chad.library.adapter.base.entity.MultiItemEntity

/**
 *@author: 巴黎没有摩天轮Li
 *@description:
 *@date: Created in 下午9:41 2018/5/22
 *@modified by:
 */
class ChannelMultipleItemEntity(var id: Int, var knowledgeType: Int, var knowledgeTitle: String, var knowledgeDescribe: String,
                                var knowledgeContent: String, var knowledgeAuthor: String,
                                var coverImg: String, var praiseNumber: Int,
                                var fileAddress: String, var browseNumber: String,
                                var commentNumber: String, var specialId: String,
                                var createDate: Long,
                                var authorName: String,
                                var userName: String) : MultiItemEntity {
    companion object {
        //推荐视频
        const val ITEM_TYPE_VIDEO = 1
        //推荐音频
        const val ITEM_TYPE_AUDIO = 2
        //推荐文稿
        const val ITEM_TYPE_DOCUMENT = 3
    }

    override fun getItemType(): Int {
        return knowledgeType
    }

}